package b1.project.product.service.impl;

import b1.project.product.entity.ProductEntity;
import b1.project.product.mapper.ProductMapper;
import b1.project.product.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author sun
 * @date 2025/7/21 00:55
 */

@Service
public class ProductServiceImpl implements ProductService {
    @Autowired
    ProductMapper productMapper;
    @Override
    public ProductEntity findById(String productId) {
        ProductEntity productEntity = productMapper.selectOneById(productId);
        return productEntity;
    }
}
